package com.deyuanyun.pic.pipe.domain.exceldomain;

import com.caixu.beanvalidateutil.annotations.CodeVail;
import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.CodeValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;
import com.deyuanyun.pic.pipe.support.validatefun.ValveRoomValidata;

import java.util.Date;

/**
 * 阀门导入bean
 * @author    王敏
 * @version   2015年12月28日下午4:50:20
 * @see         // 引用的类
 * Method List:                       
 *
 */
public class PipeValveImportDemo {

	private String code ;
	
	@DataValidate(notNull=true,myFunction=PipeLineValidata.class,myFunctionMessage="管道不存在")
	private String pipeLineId;
	
	@DataValidate(notNull=true,myFunction=PipeSegmentValidata.class,myFunctionMessage="管段不存在！")
	private String pipeSegmentId;
	
	@DataValidate(lengthLimit="30",lengthLimitMessage="长度不能大于30")
	private String valvaNumber;
	
	@CodeVail(majorCode="VALVE_STATUS",fieldName="阀门状态")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String valveStatus;
	
	@DataValidate(lengthLimit="30",lengthLimitMessage="长度不能大于30")
	private String manufacturedNum;
	
	@CodeVail(majorCode="VALVE_TYPE",fieldName="阀门类型")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String valveType;
	
	@CodeVail(majorCode="VALVE_OPERATOR_TYPE",fieldName="驱动类型")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String operatorType;
	
	
	@DataValidate(myFunction=ValveRoomValidata.class)
	private String valveRoom;//PIPE_VALVEROOM_ID
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-180,180}",notNullMessage="x坐标范围只能是-180至180")    
    private String x;
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-90,90}",notNullMessage="y坐标范围只能是-90至90")
    private String y;
	    
	@DataValidate(notNull = true,type = Number.class,numberRang="{-99999,999999}",notNullMessage="z坐标范围只能是0至999999米")
    private String z;
	
	@CodeVail(majorCode="IS_SLEEVE",fieldName="是否自动阀")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String automated;
	
	@CodeVail(majorCode="CONNECTION_TYPE",fieldName="进口链接类型")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String inletConnectionType;
	
	@DataValidate(numberRang="{0,2000}")
	private String inletDiameter;
	
	@DataValidate(numberRang="{0,200}")
	private String inletWallThickness;
	
	@CodeVail(majorCode="CONNECTION_TYPE",fieldName="出口连接类型")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String outletConnectionType;
	
	@DataValidate(numberRang="{0,2000}")
	private String outletDiameter;
	
	@DataValidate(numberRang="{0,200}")
	private String outletWallThickness;
	
	@DataValidate(numberRang="{0,5000}")
	private String pressureRating;
	
	@CodeVail(majorCode="VALVE_FUNCTION",fieldName="阀门功能")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String valvefunction;
	
	@CodeVail(majorCode="IS_SLEEVE",fieldName="是否可远程控制")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String indremotecon;
	
	@CodeVail(majorCode="REPAIR_SUGGESTED",fieldName="修复建议")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String repairSuggestiong;
	
	@CodeVail(majorCode="REPAIR_STATE_",fieldName="修复状态")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
	private String repairState;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String manufacturer;
	
	@DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
	private String manufacturedDate;
	
	@DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
	private String inserviceDate;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String constructionCompany;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String inspectingCompany;
	
	 @DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String testingCompany;
	
	 @DataValidate(lengthLimit="50",lengthLimitMessage="长度不能大于50")
	private String recorder;
	
	@DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
	private String recordtime;
	
	 @DataValidate(lengthLimit="1000",lengthLimitMessage="长度不能大于1000")
	private String remarks;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPipeLineId() {
		return pipeLineId;
	}

	public void setPipeLineId(String pipeLineId) {
		this.pipeLineId = pipeLineId;
	}

	public String getPipeSegmentId() {
		return pipeSegmentId;
	}

	public void setPipeSegmentId(String pipeSegmentId) {
		this.pipeSegmentId = pipeSegmentId;
	}

	public String getValvaNumber() {
		return valvaNumber;
	}

	public void setValvaNumber(String valvaNumber) {
		this.valvaNumber = valvaNumber;
	}

	public String getValveStatus() {
		return valveStatus;
	}

	public void setValveStatus(String valveStatus) {
		this.valveStatus = valveStatus;
	}

	public String getManufacturedNum() {
		return manufacturedNum;
	}

	public void setManufacturedNum(String manufacturedNum) {
		this.manufacturedNum = manufacturedNum;
	}

	public String getValveType() {
		return valveType;
	}

	public void setValveType(String valveType) {
		this.valveType = valveType;
	}

	public String getOperatorType() {
		return operatorType;
	}

	public void setOperatorType(String operatorType) {
		this.operatorType = operatorType;
	}


	public String getValveRoom() {
		return valveRoom;
	}

	public void setValveRoom(String valveRoom) {
		this.valveRoom = valveRoom;
	}

	public String getX() {
		return x;
	}

	public void setX(String x) {
		this.x = x;
	}

	public String getY() {
		return y;
	}

	public void setY(String y) {
		this.y = y;
	}

	public String getZ() {
		return z;
	}

	public void setZ(String z) {
		this.z = z;
	}

	public String getAutomated() {
		return automated;
	}

	public void setAutomated(String automated) {
		this.automated = automated;
	}

	public String getInletConnectionType() {
		return inletConnectionType;
	}

	public void setInletConnectionType(String inletConnectionType) {
		this.inletConnectionType = inletConnectionType;
	}

	public String getInletDiameter() {
		return inletDiameter;
	}

	public void setInletDiameter(String inletDiameter) {
		this.inletDiameter = inletDiameter;
	}

	public String getInletWallThickness() {
		return inletWallThickness;
	}

	public void setInletWallThickness(String inletWallThickness) {
		this.inletWallThickness = inletWallThickness;
	}

	public String getOutletConnectionType() {
		return outletConnectionType;
	}

	public void setOutletConnectionType(String outletConnectionType) {
		this.outletConnectionType = outletConnectionType;
	}

	public String getOutletDiameter() {
		return outletDiameter;
	}

	public void setOutletDiameter(String outletDiameter) {
		this.outletDiameter = outletDiameter;
	}

	public String getOutletWallThickness() {
		return outletWallThickness;
	}

	public void setOutletWallThickness(String outletWallThickness) {
		this.outletWallThickness = outletWallThickness;
	}

	public String getPressureRating() {
		return pressureRating;
	}

	public void setPressureRating(String pressureRating) {
		this.pressureRating = pressureRating;
	}

	public String getValvefunction() {
		return valvefunction;
	}

	public void setValvefunction(String valvefunction) {
		this.valvefunction = valvefunction;
	}

	public String getIndremotecon() {
		return indremotecon;
	}

	public void setIndremotecon(String indremotecon) {
		this.indremotecon = indremotecon;
	}

	public String getRepairSuggestiong() {
		return repairSuggestiong;
	}

	public void setRepairSuggestiong(String repairSuggestiong) {
		this.repairSuggestiong = repairSuggestiong;
	}

	public String getRepairState() {
		return repairState;
	}

	public void setRepairState(String repairState) {
		this.repairState = repairState;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public String getManufacturedDate() {
		return manufacturedDate;
	}

	public void setManufacturedDate(String manufacturedDate) {
		this.manufacturedDate = manufacturedDate;
	}

	public String getInserviceDate() {
		return inserviceDate;
	}

	public void setInserviceDate(String inserviceDate) {
		this.inserviceDate = inserviceDate;
	}

	public String getConstructionCompany() {
		return constructionCompany;
	}

	public void setConstructionCompany(String constructionCompany) {
		this.constructionCompany = constructionCompany;
	}

	public String getInspectingCompany() {
		return inspectingCompany;
	}

	public void setInspectingCompany(String inspectingCompany) {
		this.inspectingCompany = inspectingCompany;
	}

	public String getTestingCompany() {
		return testingCompany;
	}

	public void setTestingCompany(String testingCompany) {
		this.testingCompany = testingCompany;
	}

	public String getRecorder() {
		return recorder;
	}

	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}

	public String getRecordtime() {
		return recordtime;
	}

	public void setRecordtime(String recordtime) {
		this.recordtime = recordtime;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	
	
}
